from flask_sqlalchemy import SQLAlchemy
db=SQLAlchemy()


#=============打开显示SQL运行记录=========调试用
from sqlalchemy import event
from sqlalchemy.engine import Engine
# @event.listens_for(Engine, "before_cursor_execute")
# def before_cursor_execute(conn, cursor, statement, parameters, context, executemany):
#     print("将执行的 SQL: %s" % statement)
#     print("参数: %s" % parameters)